﻿using System;
using System.Collections.Generic;
using System.Web;
using DataAccess;
using System.Web.Services;
using System.Data;
/// <summary>
/// Summary description for FeedBack
/// </summary>
public class FeedBackBS 
{
    FeedbackDao FB;
    public FeedBackBS()
    {
        FB = new FeedbackDao();
        //
        // TODO: Add constructor logic here
        //
    }
    public void AddFeedBack( int CodeProfile, int CodeSchoolSubjects, int CodeProfileStudent, string Month, string Punctual, string Convered, string Skills, string Support, string Remarks)
    {
        FB.AddFeedBack( CodeProfile, CodeSchoolSubjects, CodeProfileStudent, Month, Punctual, Convered, Skills, Support, Remarks);
    }
    public List<FeedBack> ShowFeedBack()
    {
        DataTable tbl = FB.ShowFeedBack();
        List<FeedBack> list = new List<FeedBack>();
        foreach (DataRow row in tbl.Rows)
        {
            FeedBack f = new FeedBack(row[0].ToString(), row[1].ToString(), row[2].ToString(), row[3].ToString(), row[4].ToString(), row[5].ToString(), row[6].ToString(), row[7].ToString(), row[8].ToString(), row[9].ToString());
            list.Add(f);
        }
        return list;
    }
}